Expressiveness of Efficient Semi-Deterministic Choice Constructs
نویسندگان
چکیده
Recently, Abiteboul and Kanellakis introduced the notion of determinate query to describe database queries having the ability to create new domain elements. As there are no natural determinate-complete query languages known, more restrictive (the constructive queries) and more general (the semi-deterministic queries) notions of query were considered. Here, we show that the advantage of the second approach over the rst is not so much in increased expressiveness, but in the ability of expressing queries more eeciently. Concretely, we provide a precise characterization of a minimal subclass of the semi-deterministic queries containing the constructive queries in which the polynomial-time counting queries can be expressed eeciently. This subclass is deened via a semi-deterministic query language, which is obtained by introducing a particular choice operation, called swap-choice. The main claim of this paper is further substantiated by showing that the introduction of swap-choice, when restricted to new domain elements, is polynomial-time equivalent to the introduction of counting. This equivalence sheds new light on the signiicance of polynomial-time counting queries: in particular , it shows that, in the absence of an explicit domain ordering, a very limited amount of non-determinism suuces to express this important class of queries ef-ciently.
منابع مشابه
Expressiveness of Eecient Semi-deterministic Choice Constructs ?
Recently, Abiteboul and Kanellakis introduced the notion of determinate query to describe database queries having the ability to create new domain elements. As there are no natural determinate-complete query languages known, more restrictive (the constructive queries) and more general (the semi-deterministic queries) notions of query were considered. Here, we show that the advantage of the seco...
متن کاملExpressiveness of E cient Semi Deterministic Choice Constructs
Recently Abiteboul and Kanellakis introduced the notion of determinate query to describe database queries having the ability to cre ate new domain elements As there are no natural determinate complete query languages known more restrictive the constructive queries and more general the semi deterministic queries notions of query were con sidered Here we show that the advantage of the second appr...
متن کاملSemantics and Expressive Power of Nondeterministic Constructs in Deductive Databases
Non-deterministic extensions are needed in logic-based languages, such as First-Order relational languages and Datalog, to enhance their expressive power and support the eÆcient formulation of low-complexity problems and database queries. In this paper, we study the semantics and expressive power of the various non-deterministic constructs proposed in the past, including various versions of the...
متن کاملNon-deterministic Lazy It -calculus Vs It -caculus Non-deterministic Lazy -calculus Vs -calculus
We pursue the study of the embedding of the-calculus into the-calculus. Various lambda calculi with parallel and convergence testing facilities are examined and their expressiveness compared; j-a lazy calculus augmented with a non-deterministic choice operator and a convergence testing combinator, emerges as a suitable language to be encoded in. Through the use of closures for variables and abs...
متن کاملExpressive Power of Non-Deterministic Operators for Logic-based Languages
Non-deterministic operators are needed in First-Order relational languages and Datalog to extend the expressive power of such languages and support efficient formulations of lowcomplexity problems. In this paper, we study the operators proposed in the literature, including witness, lazy choice and dynamic choice, and compare their power of expressing deterministic and non-deterministic queries....
متن کامل